package com.sh.data.engine.application.service.authority;

import com.sh.data.engine.domain.authority.model.domain.MenuDomain;
import com.sh.data.engine.domain.authority.service.MenuService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author: mengzheng.mhc
 * @date: 2024/8/27 16:56
 */
@Slf4j
@Service
public class MenuApplicationService {

    @Autowired
    private MenuService menuService;

    public List<MenuDomain> listMenus() {
        return menuService.menuList();
    }

    public String listId() {
        return menuService.listId();
    }

    public MenuDomain getMenusById(Long id) {
        return menuService.getMenusById(id);
    }
}
